package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_DICMNG_DICRECORD"
 *     
*/
public class CcpDicmngDicrecord implements Serializable {

    /** identifier field */
    private String cddGuid;

    /** nullable persistent field */
    private String code;

    /** nullable persistent field */
    private String value;

    /** nullable persistent field */
    private String dicCode;

    /** nullable persistent field */
    private String cddOrder;

    /** full constructor */
    public CcpDicmngDicrecord(String cddGuid, String code, String value, String dicCode, String cddOrder) {
        this.cddGuid = cddGuid;
        this.code = code;
        this.value = value;
        this.dicCode = dicCode;
        this.cddOrder = cddOrder;
    }

    /** default constructor */
    public CcpDicmngDicrecord() {
    }

    /** minimal constructor */
    public CcpDicmngDicrecord(String cddGuid) {
        this.cddGuid = cddGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CDD_GUID"
     *         
     */
    public String getCddGuid() {
        return this.cddGuid;
    }

    public void setCddGuid(String cddGuid) {
        this.cddGuid = cddGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CODE"
     *             length="50"
     *         
     */
    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /** 
     *            @hibernate.property
     *             column="VALUE"
     *             length="200"
     *         
     */
    public String getValue() {
        return this.value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    /** 
     *            @hibernate.property
     *             column="DIC_CODE"
     *             length="50"
     *         
     */
    public String getDicCode() {
        return this.dicCode;
    }

    public void setDicCode(String dicCode) {
        this.dicCode = dicCode;
    }

    /** 
     *            @hibernate.property
     *             column="CDD_ORDER"
     *             length="10"
     *         
     */
    public String getCddOrder() {
        return this.cddOrder;
    }

    public void setCddOrder(String cddOrder) {
        this.cddOrder = cddOrder;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cddGuid", getCddGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpDicmngDicrecord) ) return false;
        CcpDicmngDicrecord castOther = (CcpDicmngDicrecord) other;
        return new EqualsBuilder()
            .append(this.getCddGuid(), castOther.getCddGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCddGuid())
            .toHashCode();
    }

}
